package com.kid.keep.enums;

import lombok.Getter;

/**
 * @Description 检测项目归类
 * @Author JOHN
 * @Create 2019-12-08
 * @Since 1.0.0
 */
public enum CatalogueEnum {
    COORDINATE(1, "协调"),
    AGILE(2, "敏捷"),
    PLIANT(3, "柔韧"),
    POWER(4, "力量"),
    ENDURANCE(5, "耐力"),
    SPEED(6, "速度"),
    BALANCE(7, "平衡"),
    BURST(8, "爆发力");
    @Getter
    private Integer value;
    @Getter
    private String message;


    CatalogueEnum(Integer value, String message) {
        this.value = value;
        this.message = message;
    }

    public static String getMessage(Integer v) {
        for (CatalogueEnum catalogueEnum : CatalogueEnum.values()) {
            if (catalogueEnum.value.equals(v)) {
                return catalogueEnum.message;
            }
        }
        return "";
    }
}
